package com.woniuxy.service;

import com.woniuxy.entity.ResponseEntity;
import com.woniuxy.entity.Training;
import com.woniuxy.entity.User;
import com.woniuxy.entity.dto.TrainingDto;
import com.woniuxy.entity.dto.UserTrainingDto;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface TrainingsService {
    /**
     * Auther: gaoyi  <br/>
     * Date: 2022/3/7:16:02  <br/>
     * Description:查询培训项目
     */
    ResponseEntity findTraining(int currentPage, int pageSize, Training training);

    /**
     * Auther: gaoyi  <br/>
     * Date: 2022/3/7:19:05  <br/>
     * Description:删除培训项目
     */
    ResponseEntity deleteOne(int id);

    /**
     * Auther: gaoyi  <br/>
     * Date: 2022/3/7:19:10  <br/>
     * Description:添加培训项目
     */
    ResponseEntity addOne(TrainingDto trainingDto);

    /**
     * Auther: gaoyi  <br/>
     * Date: 2022/3/7:19:25  <br/>
     * Description:修改培训项目
     */
    ResponseEntity updateById(Training training);

    /**
     * Auther: gaoyi  <br/>
     * Date: 2022/3/9:19:31  <br/>
     * Description:通过trainingId查询crouse
     */
    ResponseEntity findCrouseBytrainingId(Training training);
    /*
     * Description : 通过用户id查询所有培训
     * ChangeLog : 1. 创建 (2022/3/11 1:28 [10604]);
     ** @param null
     * *  @return null
    */
    ResponseEntity findTrainingByUserId(User user);

    ResponseEntity findTrainingById(int currentPage, int pageSize, int id);

    ResponseEntity findTrainingBySearch(UserTrainingDto userTrainingDto);

    ResponseEntity findTrainingIdByCrouseId(int id);

    ResponseEntity apply(int userid, int trainingid);

    ResponseEntity findNotApplyTrainingByUserId(int currentPage, int pageSize,int userid);
}
